<template>
<div class="container">
    <div class="page-group">
        <div class="page-item">
            <nextVisit></nextVisit>
        </div>
        <div class="page-item">
            <auditList></auditList>
        </div>
        <div class="page-item">
            <orderList></orderList>
        </div>
        <div class="page-item">
            <report></report>
        </div>
    </div>
</div>
</template>

<script>
import {
    mapGetters
} from "vuex";

import nextVisit from "@/views/dashboard/components/next-visit";
import auditList from "@/views/dashboard/components/audit-list";
import orderList from "@/views/dashboard/components/order-list";
import report from "@/views/dashboard/components/report";

export default {
    name: "Dashboard",
    computed: {
        ...mapGetters(["realname"]),
    },
    components: {
        nextVisit,
        auditList,
        orderList,
        report,
    },
    data() {
        return {};
    },
};
</script>

<style lang="scss" scoped>
.page-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1px;

    .page-item {
        height: calc(100vh - 74px);
        border-top: 1px solid #dedede;
        border-right: 1px solid #dedede;
        border-bottom: 1px solid #dedede;
    }

    .page-item:first-child {
        border-left: 1px solid #dedede;
    }
}
</style>
